/*
 * @version: 1.0
 * @Author: zhl
 * @Date: 2021-09-14 09:03:46
 * @LastEditors: zhl
 * @LastEditTime: 2021-09-29 14:18:31
 * @Description: 文件实现描述
 */
#ifndef __DLT698_JSON_MANAGER_H__
#define __DLT698_JSON_MANAGER_H__

#include "SerialEI.h"
#include "protocol_engine_config.h"


class JsonManager
{
private:
    /* data */
    //  void to_json(json& j, const SERIAL_RESPONSE_MESSAGE& p);
    //  void from_json(const json& j, SERIAL_RESPONSE_MESSAGE& p);
    //  void to_json(json& j, const SERIAL_REQUEST_MESSAGE& p);
    //  void from_json(const json& j, SERIAL_REQUEST_MESSAGE& p);

    
public:
    JsonManager(/* args */);
    ~JsonManager();


    static int get_serial_request_msg(std::string addr, int req_id,  SERIAL_PARAMS params, char *sendBuf, int buf_len, std::string &msg);

    static void get_history_data_obj(int64_t dev_id, HISTORY_DATA &history);
};










#endif /* __DLT698_JSON_MANAGER_H__ */